package com.octo.poker.data;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;

public class Hand {
	private Collection<Card> cards;

	/**
	 * Example of Hand creation :
	 *
	 * new Hand("4S", "2D", "JH", "JC", "AD");
	 */
	public Hand(String... cards) {
		this.cards = new ArrayList<Card>();
		for (String s : cards) {
			this.cards.add(Card.parse(s));
		}
	}

	public Collection<Card> getcards() {
		return new HashSet<Card>(cards);
	}
	
	
	

}
